package com.bestcem.xm.member.dao.impl;

import com.bestcem.xm.member.dao.BaseDao;
import com.bestcem.xm.member.dao.CommonDao;
import com.bestcem.xm.member.entity.mongo.BaseEntity;
import org.springframework.stereotype.Repository;

/**
 * @author ming.xue <ming.xue@idiaoyan.com>
 * @desc 通用数据访问
 * @date 2021-07-24
 */
@Repository("commonDao")
public class CommonDaoImpl extends BaseDao implements CommonDao {
    /**
     * 根据主键获取实体类
     *
     * @param id
     * @param entityClass
     * @return
     */
    public <T extends BaseEntity> T findById(String id, Class<T> entityClass) {
        return null;
    }

    /**
     * 插入
     *
     * @param objectToSave
     */
    @Override
    public <T extends BaseEntity> T insert(T objectToSave) {
        return null;
    }

    @Override
    public <T extends BaseEntity> T save(T objectToSave) {
        return null;
    }

    @Override
    public <T extends BaseEntity> T get(String id, Class<T> entityClass) {
        return null;
    }
}
